-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jupyter Notebook generation #74
Conversation
- Works for tests/tcp/01-iperf.npf test, but not much more testing
This also renames all features to y_FEATURE So instead of THROUGHPUT the column will be y_THROUGHPUT That allows to find "outputs"/features easily without any metadata given to the dataset
Add decide_graph_type
- You can't use a global constant in the template to toggle Jinja if statements (settings like log scale, or savefig). - The variables used are from the dict of the rendering function.
Run with `python3 npf_run.py --test tests/tcp/04-iperf.npf --notebook results/iperf2/2.0.9/iperf-4-nb.ipynb`
npf/Graph.py
Outdated
@@ -0,0 +1,77 @@ | |||
from npf.types.dataset import convert_to_xyeb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In python filenames are lowercase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Git didn't pick up on the Graph.py to graph.py renaming, so I'll force it.
@@ -0,0 +1,322 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this template be changed by the user easily? The path to this should be an overwriteable default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, working on it.
@@ -1030,6 +953,9 @@ def lam(x): | |||
|
|||
|
|||
versions = [] | |||
"""Vars_all is the set of all variable combination that have some value. Taking the iperf case, it will be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for those comments :)
Can you also add an example ipynb in doc/ ? |
Semms ok! Thanks! |
No description provided.